layui.use(['form','jquery'], function () {
    if(layuiVersion > 1){
        layui.form;
    }else{
        layui.form();
    }
    var $ = layui.jquery;

    $('#codeimg').on('click',function(){
        var time = new Date();
        var timeStr = time.getTime();
        $(this).attr("src", ctx + "refreshCode?t=" + timeStr);
    })
    $('#codeimg').trigger("click");
});